
// 选中主表某行的逻辑


export default function handleTableSelect(props, moduleId, record, index) {
    let selectedData = this.props.editTable.getCheckedRows('ncc600704list');

    // 只有在有选中项的时候，才可以点击批量添加子集
    if(selectedData.length > 0) {
        this.props.button.setButtonDisabled({
            BatchAddSub: false,
            entryapply: false
        });
    }
    else {
        this.props.button.setButtonDisabled({
            BatchAddSub: true,
            entryapply: true
        });
    }

    this.setState({
        selectedRows: selectedData
    });
}
